package com.usian.mapper;

import com.usian.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface RoleMapper {

    @Select("select * from user where name=#{name} and pwd = #{pwd}")
    User findUser(User user);

    @Insert("INSERT INTO user(id, name, pwd, birthday, aid) VALUES (#{id}, #{name}, #{pwd}, #{birthday}, #{aid})")
    void add(User user);
}
